package com.yjc.springcloud.alibaba.service;

import com.yjc.springcloud.alibaba.domain.CommonResult;
import com.yjc.springcloud.alibaba.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shkstart
 * @create 2022-08-17 21:14
 */
@FeignClient("seata-storage-service")
public interface StorageService {

    @GetMapping("/storage/decrease")
    public CommonResult decreaseStorage(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
